{include file="Public:header" /}
<body>
<!-- 日期控件 -->
<script language="javascript" type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
<div class="wrap">
    <!--碎屑路径-->
    <div class="debris_nav">
        <ol class="breadcrumb">
            <li><a href="#">系统设置</a></li>
            <li class="active">网站设置</li>
        </ol>
    </div>
    <div class="blank"></div>
    <!--列表内容-->
    <div class="content" id="content_page">
         <form method="post" action="{:url('UserRole/edit_ok')}">
             <input name="id" value="{$res.id}" type="hidden">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_add">
            <tr>
                <td valign="top">角色名</td>
                <td>
                    <input name="name" value="{$res.name}" class="form-control" placeholder="请填写角色名" size="30"><br>
                    <span class="note"><i class="iconfont icon-iconfontmoban"></i>标题请勿超过30个字节</span>
                </td>
            </tr>
            <tr>
            <td valign="top">备注</td>
            <td>
                <textarea name="desc" class="form-control" cols="50" rows="5">{$res.desc}</textarea>
            </td>
            </tr>
            <tr>
            <td valign="top">排序</td>
            <td>
                <input name="listorder" value="{$res.listorder}" class="form-control" placeholder="" size="5" >
            </td>
            </tr>

            <tr>
                <td valign="top">发布时间</td>
                <td>
                    <span class="laydate"><label><input class="form-control Wdate" type="text" id="start" value="{$res.format_add_time}" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/></label>
                    <label class="laydate-icon"></label></span>
                </td>
            </tr>

            <tr>
                <td valign="top"></td>
                <td>
                    <input type="submit" class="btn" value="确定">
                </td>
            </tr>
            <tr>
        </table>
         </form>
    </div>
    <!--列表内容-->
</div>
</body>
<script>

    /*日期控件*/
    var start = {
        elem: '#start',
        format: 'YYYY/MM/DD hh:mm:ss',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };




</script>
</html>